/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/22 下午6:41
 * LastModified: 2020/03/22 18:41:22
 */

package com.qolome.knowledge.design.pattern.mediator.chatroom;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 03月22日 18:41:04
 */
public class Test {

    public static void main(String[] args) {

        ChatRoom chatRoom = new ChatRoom();
        User ginger = new User(chatRoom,"Ginger");
        User tom = new User(chatRoom,"Tom");

        tom.sendMsg("吃饭");
        ginger.sendMsg("睡觉");
        tom.sendMsg("打豆豆");
    }
}
